package com.ruoyi.mall.service;

import com.ruoyi.mall.domain.MallOrderDetail;
import com.ruoyi.mall.domain.vo.MallOrderDetailVo;
import com.ruoyi.mall.domain.bo.MallOrderDetailBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 积分商城订单明细Service接口
 *
 * @author ruoyi
 * @date 2025-02-20
 */
public interface IMallOrderDetailService {

    /**
     * 查询积分商城订单明细
     */
    MallOrderDetailVo queryById(Long id);

    /**
     * 查询积分商城订单明细列表
     */
    TableDataInfo<MallOrderDetailVo> queryPageList(MallOrderDetailBo bo, PageQuery pageQuery);

    /**
     * 查询积分商城订单明细列表
     */
    List<MallOrderDetailVo> queryList(MallOrderDetailBo bo);

    /**
     * 新增积分商城订单明细
     */
    Boolean insertByBo(MallOrderDetailBo bo);

    /**
     * 新增批量订单明细信息
     * @return
     */
    Boolean insertBatch(List<MallOrderDetail> lstMallOrderDetails);

    /**
     * 修改积分商城订单明细
     */
    Boolean updateByBo(MallOrderDetailBo bo);

    /**
     * 校验并批量删除积分商城订单明细信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
